# -*- coding:utf-8 -*-

from django.urls import path
from rest_framework.routers import SimpleRouter

from Apps.Interface.views.interfaceCatView import interfaceCatOptionsInterfaceView, InterfaceCatView,interfaceCatOptionsView

from Apps.Interface.views.interfaceView import InterfaceView

route = SimpleRouter()
route.register("interfaceCat", InterfaceCatView, basename="InterfaceCatView")
route.register("interface", InterfaceView, basename="InterfaceView")

urlpatterns = [
                  # 查询分类接口，包括接口名
                  path("interfaceCatOptionsInterface/<str:pk>", interfaceCatOptionsInterfaceView.as_view()),
                  # 查询分类接口，仅查询分类
                  path("interfaceCatOptions/<str:pk>", interfaceCatOptionsView.as_view()),

              ] + route.urls
